package com.jy.api.enums;

import java.util.ArrayList;
import java.util.List;

public enum AliTemplateCodeEnum {


    ZERO("SMS_75865051", "验证码");

    /**
     * 枚举值
     */
    private final String code;

    /**
     * 枚举描述
     */
    private final String message;

    /**
     * 构造一个<code>LocalCacheEnum</code>枚举对象
     *
     * @param code
     * @param message
     */
    private AliTemplateCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    /**
     * @return Returns the code.
     */
    public String getCode() {
        return code;
    }

    /**
     * @return Returns the message.
     */
    public String getMessage() {
        return message;
    }


    /**
     * 获取全部枚举
     *
     * @return List<LocalCacheEnum>
     */
    public List<AliTemplateCodeEnum> getAllEnum() {
        List<AliTemplateCodeEnum> list = new ArrayList<AliTemplateCodeEnum>();
        for (AliTemplateCodeEnum _enum : values()) {
            list.add(_enum);
        }
        return list;
    }

    /**
     * 获取全部枚举值
     *
     * @return List<String>
     */
    public List<String> getAllEnumCode() {
        List<String> list = new ArrayList<String>();
        for (AliTemplateCodeEnum _enum : values()) {
            list.add(_enum.getCode());
        }
        return list;
    }
}
